#include <iostream>  //stdio.h
#include <cstdio>
#include <cstdlib>
#include <cstring>
using namespace std;

int main()
{
	//char数组
	char buf[10];
	
	cout<<"请输入一个字符串"<<endl;
	cin>>buf;
	
	//char指针
	char *p=(char *)malloc(10);
	cout<<"请输入一个字符串"<<endl;
	cin>>p;
	
	cout<<buf<<"   "<<p<<endl;

}